Package-level declarations

Types

Link copied to clipboard

Call direction, used to identify whether the call is incoming, outgoing, or missed.

Link copied to clipboard

Call end reason, used to identify how the audio/video call ended (normal hangup, rejection, timeout, etc.).

Link copied to clipboard
data class CallInfo(var callId: String = "", var roomId: String = "", var inviterId: String = "", var inviteeIds: LinkedHashSet<String> = LinkedHashSet(), var chatGroupId: String = "", var mediaType: CallMediaType? = null, var result: CallDirection = CallDirection.Unknown, var startTime: Long = 0, var duration: Long = 0)

Call information, including call ID, room ID, initiator, invitees, media type, call direction, start time, duration, and other complete information.

Link copied to clipboard
abstract class CallListener

Call events, used to receive various event notifications during a call.

Link copied to clipboard

Call media type, used to specify whether to initiate an audio call or video call.

Link copied to clipboard
data class CallParams(var roomId: String = "", var timeout: Int = 30, var userData: String = "", var chatGroupId: String = "", var isEphemeralCall: Boolean = false)

Call parameter configuration, used to set room ID, timeout, custom data, and other parameters when initiating an audio/video call.

Link copied to clipboard
data class CallParticipantInfo(var id: String = "", var name: String = "", var avatarUrl: String = "", var remark: String = "", var status: CallParticipantStatus = CallParticipantStatus.None, var isMicrophoneOpened: Boolean = false, var isCameraOpened: Boolean = false)

Call participant information, including user ID, nickname, avatar, participation status, microphone/camera on/off status, etc.

Link copied to clipboard

Call participant status, used to identify whether the participant is waiting or has answered.

Link copied to clipboard
data class CallState(var activeCall: StateFlow<CallInfo>, var recentCalls: StateFlow<LinkedHashSet<CallInfo>>, var cursor: StateFlow<String>, var selfInfo: StateFlow<CallParticipantInfo>, var allParticipants: StateFlow<LinkedHashSet<CallParticipantInfo>>, var speakerVolumes: StateFlow<MutableMap<String, Int>>, var networkQualities: StateFlow<MutableMap<String, NetworkQuality>>)

Call state data, manages the real-time data state of the current call.

Link copied to clipboard
abstract class CallStore

Audio/video call management APIs for initiating, answering, rejecting, hanging up calls, group call management, and call history management.